﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="RelegateReport.aspx.cs" Inherits="BasicBase_DepartmentRelegate_RelegateReport"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>地区：<asp:DropDownList ID="ddlCity" runat="server" DataTextField="ItemName" DataValueField="ItemID"
            OnSelectedIndexChanged="ddlCity_SelectedIndexChanged" AutoPostBack="True">
        </asp:DropDownList>
        </li>
        <li>
            <asp:HyperLink ID="hylAdd" runat="server" NavigateUrl="RelegateAdd.aspx">添加</asp:HyperLink>
        </li>
    </ul>
    <asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" DataKeyNames="DepartmentID"
        Caption="<span>单位归属</span>" OnRowDataBound="gvChemical_RowDataBound" PageSize="15">
        <Columns>
            <asp:TemplateField>
                <HeaderStyle HorizontalAlign="Left" Width="5%" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblID"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位名称">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblDepartmentName"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="上级单位">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblParentName"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="区域">
                <ItemTemplate>
                    <%# Yipusoft.Common.BLL.CodeItem.GetCodeItem(Yipusoft.Common.BLL.CodeItem.GetCodeItem(Eval("RegionId").ToString()).ParentID).ItemName +Yipusoft.Common.BLL.CodeItem.GetCodeItem(Eval("RegionId").ToString()).ItemName%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="地级市辖区">
                <ItemTemplate>
                    <asp:CheckBox runat="server" ID="cbXZ" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="编辑">
                <ItemTemplate>
                    <a href="RelegateAdd.aspx?ID=<%# Eval("DepartmentID") %>">
                        <img alt="编辑" src="../../Images/Edit.gif" /></abbr></a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="25" />
                <HeaderStyle HorizontalAlign="Center" Width="25" />
            </asp:TemplateField>
        </Columns>
        <RowStyle HorizontalAlign="Left" />
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="20" OnPageSizeChange="ListPageContral1_PageSizeChange" />
    <br />
    <asp:Label runat="server" ID="lblwhere" Visible="False"></asp:Label><div class="prompt">
        <asp:Label ID="Prompt" runat="server"></asp:Label></div>
</asp:Content>
